\begin{tikzpicture}

\definecolor{darkgray176}{RGB}{176,176,176}

\begin{axis}[
tick align=outside,
tick pos=left,
title={Simple plot},
x grid style={darkgray176},
xlabel={t},
xmajorgrids,
xmin=0, xmax=6.2831853,
xtick style={color=black},
y grid style={darkgray176},
ylabel={y},
ymajorgrids,
ymin=-1.1, ymax=1.1,
ytick style={color=black}
]
\addplot [draw=black, fill=black, mark=+, only marks]
table{%
x  y
0 0
0.62831853 0.95105652
1.2566371 0.58778525
1.8849556 -0.58778525
2.5132741 -0.95105652
3.1415927 -2.4492936e-16
3.7699112 0.95105652
4.3982297 0.58778525
5.0265482 -0.58778525
5.6548668 -0.95105652
6.2831853 -4.8985872e-16
};
\addplot [semithick, black, mark=*, mark size=1.5, mark repeat=2, mark options={solid,draw=red}]
table {%
0 0
0.62831853 0.58778525
1.2566371 0.95105652
1.8849556 0.95105652
2.5132741 0.58778525
3.1415927 1.2246468e-16
3.7699112 -0.58778525
4.3982297 -0.95105652
5.0265482 -0.95105652
5.6548668 -0.58778525
6.2831853 -2.4492936e-16
};
\addplot [semithick, black, dashed, mark=square*, mark size=3, mark repeat=3, mark options={solid,draw=red}]
table {%
0 1
0.62831853 0.80901699
1.2566371 0.30901699
1.8849556 -0.30901699
2.5132741 -0.80901699
3.1415927 -1
3.7699112 -0.80901699
4.3982297 -0.30901699
5.0265482 0.30901699
5.6548668 0.80901699
6.2831853 1
};
\end{axis}

\end{tikzpicture}
